package com.arpa.wms.mapper;

import com.arpa.wms.domain.dto.PickItemCancelQuantityDto;
import com.arpa.wms.domain.dto.PickingRegisterDTO;
import com.arpa.wms.domain.entity.PickingRegister;
import com.arpa.wms.domain.vo.PdaPickingRegisterVO;
import com.arpa.wms.domain.vo.PickingRegisterVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 拣货明细 Mapper 接口
 * </p>
 *
 * @author LEO
 * @since 2020-10-22
 */
public interface PickingRegisterMapper extends BaseMapper<PickingRegister> {

    /**
     * 查询列表
     * @param pickingRegisterDTO
     * @return
     */
    List<PickingRegisterVO> queryList(PickingRegisterDTO pickingRegisterDTO);

    /**
     * 查询合计,包含总数
     * @param pickingRegisterDTO
     * @return
     */
    PickingRegisterVO queryListSum(PickingRegisterDTO pickingRegisterDTO);

    void updateCancelQuantityBatch(@Param("pickItemCancelQuantityDtoList")  List<PickItemCancelQuantityDto> pickItemCancelQuantityDtoList);

}
